package com.example.lexiangbackend.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public class AdminLoginRequest {
    
    @NotBlank(message = "管理员用户名不能为空")
    @Size(min = 3, message = "管理员用户名至少3位")
    private String username;
    
    @NotBlank(message = "管理员密码不能为空")
    @Size(min = 6, message = "管理员密码至少6位")
    private String password;
    
    private String verificationCode; // 可选的双重验证码
    
    private boolean rememberMe = false;

    // 构造函数
    public AdminLoginRequest() {}

    public AdminLoginRequest(String username, String password, String verificationCode, boolean rememberMe) {
        this.username = username;
        this.password = password;
        this.verificationCode = verificationCode;
        this.rememberMe = rememberMe;
    }

    // Getters and Setters
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
    }
} 